package com.wuzf.service.impl;

import com.wuzf.common.entity.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuzf.dao.PaymentDao;
import com.wuzf.service.PaymentService;


@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentDao dao;

    @Override
    public int createPayment(Payment payment) {
        return dao.createPayment(payment);
    }

    @Override
    public Payment getPaymentById(long id) {
        return dao.getPaymentById(id);
    }
}
